<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
Route::rule('/', 'index/index/index')->allowCrossDomain();
Route::rule('/login','index/index/login','post')->allowCrossDomain();
Route::rule('/register','index/index/register','post')->allowCrossDomain();
Route::rule('/orderingPost','index/index/orderingPost','post')->middleware('Jwt')->allowCrossDomain();
Route::rule('/orderingDelete','index/index/orderingDelete','post')->middleware('Jwt')->allowCrossDomain();
Route::rule('/orderList','index/index/orderList','post')->middleware('Jwt')->allowCrossDomain();
Route::rule('/userList','user/index/index','get')->middleware('Jwt')->allowCrossDomain();
Route::rule('/changeLevel','user/index/changeLevel','post')->middleware('Jwt')->allowCrossDomain();
Route::rule('/changeType','user/index/changeUserType','post')->middleware('Jwt')->allowCrossDomain();
Route::rule('/changeScore','user/index/changeScore','post')->middleware('Jwt')->allowCrossDomain();
Route::rule('/gears','gears/index/index','get')->middleware('Jwt')->allowCrossDomain();
Route::rule('/editGears','gears/index/editGears','post')->middleware('Jwt')->allowCrossDomain();
Route::rule('/deleteGears','gears/index/deleteGears','post')->middleware('Jwt')->allowCrossDomain();
Route::rule('/orderDishes','index/index/orderDishes','post')->middleware('Jwt')->allowCrossDomain();
Route::rule('/buyList','index/index/buyList','get')->middleware('Jwt')->allowCrossDomain();
Route::rule('/deleteBuyOrder','index/index/deleteBuyOrder','post')->middleware('Jwt')->allowCrossDomain();
Route::rule('/deleteUser','user/index/deleteUser','post')->middleware('Jwt')->allowCrossDomain();
Route::rule('/scoreList','user/index/scoreList','get')->middleware('Jwt')->allowCrossDomain();
Route::rule('/importUsers','user/index/importUsers','post')->middleware('Jwt')->allowCrossDomain();
Route::rule('/modifyUserPsw','user/index/modifyUserPsw','post')->middleware('Jwt')->allowCrossDomain();
Route::rule('/changeScoreByDish','index/index/changeScoreByDish','post')->middleware('Jwt')->allowCrossDomain();
Route::rule('/exportData','index/index/exportData','post')->middleware('Jwt')->allowCrossDomain();
Route::rule('/exportUserScore','user/index/exportUserScore','post')->middleware('Jwt')->allowCrossDomain();
Route::rule('/userInfo','user/index/userInfo','get')->middleware('Jwt')->allowCrossDomain();
Route::rule('/exportUsers','user/index/exportUsers','get')->middleware('Jwt')->allowCrossDomain();
Route::rule('/chiefExport','index/index/chiefExport','get')->middleware('Jwt')->allowCrossDomain();